﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Models
{
    /// <summary>
    /// 数据实体类，给Dapper框架用
    /// 与表结构一致
    /// 产品表：关键列只有 Id,商品id,
    /// </summary>
    public class sp_Product
    {
        /// <summary>
        /// 编号自动
        /// </summary>
        public int Id { get; set; }
        /// <summary>
        /// 所属商品id
        /// </summary>
        public int Goods_id { get; set; }
        /// <summary>
        /// 商品名称
        /// </summary>
        public string Good_name { get; set; }
        /// <summary>
        /// 每一个产品可以设置不同名称
        /// </summary>
        public string Good_SKUName { get; set; }
        /// <summary>
        /// 产品销售价格
        /// </summary>
        public decimal Good_Price { get; set; }
        /// <summary>
        /// 该产品的库存
        /// </summary>
        public int Good_SKU_KC { get; set; }
        /// <summary>
        /// 该产品的库存，成本价
        /// </summary>
        public decimal Good_SKU_KCPrice { get; set; }
        /// <summary>
        /// VIP会员销售价
        /// </summary>
        public decimal Good_SKU_VIPPrice { get; set; }
        /// <summary>
        /// 通过动态参数，组合的SKU
        /// </summary>
        public string Good_SKU_Attr { get; set; }
        /// <summary>
        /// 在前台显示的样式,是分参数显示还是直接显示在一起
        /// </summary>
        public int Good_SKU_ShowType { get; set; }
        /// <summary>
        /// 动参参数的个数
        /// </summary>
        public int Good_SKU_AttrCount { get; set; }
        /// <summary>
        /// 产品也可以有不同介绍信息
        /// </summary>
        public string Good_Content { get; set; }
        /// <summary>
        /// 显示的大图图片
        /// </summary>
        public string Good_showpic1 { get; set; }
        /// <summary>
        /// 显示的小图图片
        /// </summary>
        public string Good_showpic2 { get; set; }
        /// <summary>
        /// 备用列1
        /// </summary>
        public string bei1 { get; set; }
        /// <summary>
        /// 备用列2
        /// </summary>
        public string bei2 { get; set; }
    }
}
